第10 步:让我们再次使用新参数调用stick_figure()来创建具有不同特征的简笔画!
- 将Call Parameters Into Variable代码底部的变量中。将函数名称更改为stick_person 。
- 将返回变量从my_var重命名为person2 。这将存储从函数返回的列表!
- 在函数调用的括号中添加三个参数: stick_person( 0 , 0 , "red" )
函数调用中的参数值提供函数运行时用于x 、 y和color的值。
To navigate the page using the TAB key, first press ESC to exit the code editor.